package com.zucc.service;

import com.alibaba.fastjson.JSONArray;
import com.zucc.controller.req.*;
import com.zucc.controller.resp.MenuResp;
import com.zucc.service.base.PageData;

import java.util.List;

/**
 * @author : charspan
 * @Description :
 * @create : 2021-12-05 9:01 上午
 */
public interface MenuService {
    void add(MenuAddReq req);

    void modify(MenuModifyReq req);

    void deleteOne(Long id);

    PageData<MenuResp> page(MenuSearchReq req);

    void addRoleMenu(RoleMenuAddReq req);

    List<MenuResp> getMenusByRoleType(Integer roleType);

    JSONArray getMenuTree(MenuSearchTreeReq req);
}
